body{
  background-color: pink;
}
.box{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: rotate3d(-50%,-50%,0);
  display: flex;
  align-items: center;
}
.input{
  transition: all 0.5s ease;
  width: 200px;
}
.input input{
  outline: none;
  border: none;
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  padding: 15px;
  font-size: 18px;
}
.search{
  height: 50px;
  background-color: #fff;
  padding: 15px;
  box-sizing: border-box;
}
.search i{
  font-size: 24px;
  line-height: 20px;
  font-weight: bold;
}
.active{
  width: 0px !important;
  padding: 0;
}
